package com.spring.library.mapper;

import com.spring.library.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author danty
 * @since 2024-09-19
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where user_name = #{username} ")
    User findByUserName(String username);
}
